package com.ruan.dao;

import com.ruan.pojo.User;
import com.ruan.query.UserQuery;
import com.ruan.vo.UserVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName:UserMapper
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/14 15:10
 **/
@Repository
public interface UserMapper {
    User getUserInfoById(Integer id);

    List<UserVo> getUserList(UserQuery userQuery);

    int addUser(User user);

    int deleteUserById(Integer id);

    int editUser(User user);

    int deleteUserByIds(Integer[] ids);

    User getUserByUserName(String userName);

    User getUserById(Integer id);
}
